
<%@page import="com.printeverywhere.dto.Banneddomain"%><%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<table width="100%">
	<tr>
		<td height="40" class="sectionheading bottom-border">
			Banned Domain
		</td>
	</tr>
</table>

<s:form method="POST" action="addBanneddomains" theme="simple" >
	<table class="verdana12blacknormal" width="100%" >
		<tr align="left">
			<td align="center">
				<s:actionerror cssClass="Note-red"/>
				<s:fielderror cssClass="Note-red"/>
			</td>
		</tr>
		<tr align="left">
			<td  class="verdana12blacknormal" colspan="2">
				<p> User registration banned domains and emails list </p>
				<p>Please enter each entry on one line. You can ban entire domain using *@domain.com</p>
			</td>
		</tr>
		<tr>
			<td class="verdana12blacknormal" width="45%">
				Add Email and Domain Name
				<s:hidden name="domainid" />
				<s:textfield name="blockDomainName" theme="simple" cssClass="Textfiled-border"/>
			</td>
			<td class="verdana12Greybold">
				<s:submit type="image" src="../Admin-Images/save_btn.gif" value="%{'Save List'}"/>
				<img style="cursor: pointer;" onclick="document.getElementById('addBanneddomains').reset();" src="../Admin-Images/reset-button.gif" alt="Reset">
			</td>
		</tr>
	</table>
</s:form>

<display:table name="banneddomainlist" pagesize="10" requestURI="showBanneddomains.htm" id="row" style="background-color: #E9E9E9" class="verdana12blacknormal" >
	<display:column property="domainName" title="Blocked Domain and Email " class="right-border verdana12blacknormal" headerClass="right-border Table-Head" />
	<display:column href="editBanneddomains.htm" paramId="id" paramProperty="id" title="Edit" autolink="true" class="right-border verdana12blacknormal"  headerClass="right-border Table-Head" style="cursor: pointer; text-align: center;">
		<img src="../Admin-Images/edit-icon.gif" style="border: 0" align="middle" alt="Edit">
	</display:column>
	<display:column title="Delete" class="right-border verdana12blacknormal"  headerClass="Table-Head"  style="cursor: pointer; text-align: center;">
		<img src="../Admin-Images/delete-icon.gif" onclick="wantToDeleteWithURL('deleteBanneddomains.htm?id=<%= ((Banneddomain) row).getId() %>', 'Do you want to delete this domain?')" style="border: 0" align="middle" alt="Delete">
	</display:column>
</display:table>
